/**
 * 工作计划
 * Created by Mark on 2017/6/16.
 */
import Vue from 'vue'
import VueResource from 'vue-resource';
Vue.use(VueResource);

export default {
  /**
   * 工作计划类型列表查询
   */
  getScheduleTypeList() {
    return Vue.http.get("/serviceSchedule/m/getScheduleTypeList");
  },

  /**
   * 工作计划类型详情查询
   */
  getScheduleType(schTypeId) {
    return Vue.http.get("/serviceSchedule/m/getScheduleType/" + schTypeId);
  },

  /**
   * 新增或更新排班类型
   */
  addOrUpdateScheduleType(data) {
    return Vue.http.post("/serviceSchedule/m/addOrUpdateScheduleType", data);
  },

  /**
   * 删除排班类型
   */
  deleteScheduleType(data) {
    return Vue.http.post("/serviceSchedule/m/deleteScheduleType", data);
  },
  /**
   * 工作计划视图查询
   */
  getScheduleEmList(val) {
    return Vue.http.post("/serviceSchedule/m/getScheduleEmList",val);
  },
  /**
   * 换班
   */
  bedChanging(val) {
    return Vue.http.post("/serviceSchedule/m/bedChanging",val);
  },
  /**
   * 新增或更新排班计划
   */
  addOrUpdateScheduleEm(val){
    return Vue.http.post("/serviceSchedule/m/addOrUpdateScheduleEm",val);
  },
  /**
   * 会员视图查询
   */
  getWorkPlanInfoForMemberList(val){
    return Vue.http.post("/serviceSchedule/m/getWorkPlanInfoForMemberList",val);
  },
  /**
   * 查看工作计划详情
   */
  getWorkPlanDetailList(val){
    return Vue.http.post("/serviceSchedule/m/getWorkPlanDetailListForEmp",val);
  },
  /**
   * 更新工作计划详情
   */
  updateEmWorkPlanDetailTime(val){
    return Vue.http.post("/serviceSchedule/m/updateEmWorkPlanDetailTime",val);
  },

  /**
   * 获取团队下拉菜单
   */
  getAllTeams() {
    return Vue.http.post("/teamManage/m/getAllTeams");
  },


}
